import {Routes} from '@angular/router';

import { AttacheMainComponent } from './attache-main/attache-main.component';
import { LoginComponent } from './login/login.component';
import { RegistComponent } from './regist/regist.component';
import { PersonalComponent } from './personal/personal.component';
import { HomeComponent } from './home/home.component';
import { FossickComponent } from './fossick/fossick.component';
import { OrderComponent } from './order/order.component';
import { NavComponent } from './nav/nav.component';
import { ScreenComponent } from './screen/screen.component';
import { OrderDetailsComponent } from './order-details/order-details.component';
import { CertificationComponent } from './certification/certification.component';
import { PayComponent } from './pay/pay.component';
import { PasswordComponent } from './password/password.component';
import { PayRecordComponent } from './pay-record/pay-record.component';

export const AttacheRoutes: Routes = [
  {
    path: '',
    component: AttacheMainComponent,
    children: [{
      path: '',
      redirectTo: '/attache/login',
      pathMatch: 'full'
    }, {
      path: 'personal',
      component: PersonalComponent
    }, {
      path: 'home',
      component: HomeComponent
    }, {
      path: 'fossick',
      component: FossickComponent
    }, {
      path: 'order',
      component: OrderComponent
    }, {
      path: 'regist',
      component: RegistComponent
    }, {
      path: 'login',
      component: LoginComponent
    }, {
      path: 'nav',
      component: NavComponent
    }, {
      path: 'screen',
      component: ScreenComponent
    }, {
      path: 'order-details',
      component: OrderDetailsComponent
    }, {
      path: 'certification',
      component: CertificationComponent
    }, {
      path: 'pay',
      component: PayComponent
    }, {
      path: 'password',
      component: PasswordComponent
    }, {
      path: 'pay-record',
      component: PayRecordComponent
    }]
  }
];
